package com.zx._09_架构.rpc演变过程.rpc_04;

import com.zx._09_架构.rpc演变过程.service.UserService;
import com.zx.common.entity.UserRpcDto;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Client {

    public static void main(final String[] args) throws Exception {
        final UserService userService = Stub.getProxy(UserService.class);
        final UserRpcDto userRpcDto = userService.getById(9L);
        log.info("consumer = {}", userRpcDto.toString());
    }
}
